package tests;

import java.awt.EventQueue;
import java.io.FileNotFoundException;
import java.io.IOException;

import javax.swing.UIManager;

import managers.OptionsManager;
import spotGUI.optionsGUI.OptionsFrame;
import utils.StackTracePrinter;

public class OptionsTest {

	public static void main(String[] args) {
		
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				
				try {
					UIManager.setLookAndFeel("com.jtattoo.plaf.bernstein.BernsteinLookAndFeel");
				} catch (Exception e) {
					StackTracePrinter.print(e);
				}
				
					try {
						OptionsManager.getSharedInstance().addOptionGroup("general", "options/general.properties");
						OptionsManager.getSharedInstance().addOptionGroup("messenger", "options/messenger.properties");
						OptionsManager.getSharedInstance().addOptionGroup("soundPopup", "options/soundPopup.properties");
						OptionsManager.getSharedInstance().addOptionGroup("fileTransfer", "options/filesTransfer.properties");
						OptionsManager.getSharedInstance().addOptionGroup("SocialNetwork", "options/socialNetwork.properties");
						OptionsManager.getSharedInstance().addOptionGroup("ChatPanel", "options/chatPanel.properties");
					} catch (FileNotFoundException e) {
						// TODO Auto-generated catch block
						StackTracePrinter.print(e);
					} catch (IOException e) {
						// TODO Auto-generated catch block
						StackTracePrinter.print(e);
					}
		
					OptionsFrame frame = new OptionsFrame();
			}
		});
	}
}
